package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.YqgTechnicianRehearsalMapper;
import com.ruoyi.project.domain.YqgTechnicianRehearsal;
import com.ruoyi.project.service.IYqgTechnicianRehearsalService;

/**
 * projectService业务层处理
 * 
 * @author dr
 * @date 2023-06-28
 */
@Service
public class YqgTechnicianRehearsalServiceImpl implements IYqgTechnicianRehearsalService 
{
    @Autowired
    private YqgTechnicianRehearsalMapper yqgTechnicianRehearsalMapper;

    /**
     * 查询project
     * 
     * @param id project主键
     * @return project
     */
    @Override
    public YqgTechnicianRehearsal selectYqgTechnicianRehearsalById(Long id)
    {
        return yqgTechnicianRehearsalMapper.selectYqgTechnicianRehearsalById(id);
    }

    /**
     * 查询project列表
     * 
     * @param yqgTechnicianRehearsal project
     * @return project
     */
    @Override
    public List<YqgTechnicianRehearsal> selectYqgTechnicianRehearsalList(YqgTechnicianRehearsal yqgTechnicianRehearsal)
    {
        return yqgTechnicianRehearsalMapper.selectYqgTechnicianRehearsalList(yqgTechnicianRehearsal);
    }

    /**
     * 新增project
     * 
     * @param yqgTechnicianRehearsal project
     * @return 结果
     */
    @Override
    public int insertYqgTechnicianRehearsal(YqgTechnicianRehearsal yqgTechnicianRehearsal)
    {
        return yqgTechnicianRehearsalMapper.insertYqgTechnicianRehearsal(yqgTechnicianRehearsal);
    }

    /**
     * 修改project
     * 
     * @param yqgTechnicianRehearsal project
     * @return 结果
     */
    @Override
    public int updateYqgTechnicianRehearsal(YqgTechnicianRehearsal yqgTechnicianRehearsal)
    {
        return yqgTechnicianRehearsalMapper.updateYqgTechnicianRehearsal(yqgTechnicianRehearsal);
    }

    /**
     * 批量删除project
     * 
     * @param ids 需要删除的project主键
     * @return 结果
     */
    @Override
    public int deleteYqgTechnicianRehearsalByIds(Long[] ids)
    {
        return yqgTechnicianRehearsalMapper.deleteYqgTechnicianRehearsalByIds(ids);
    }

    /**
     * 删除project信息
     * 
     * @param id project主键
     * @return 结果
     */
    @Override
    public int deleteYqgTechnicianRehearsalById(Long id)
    {
        return yqgTechnicianRehearsalMapper.deleteYqgTechnicianRehearsalById(id);
    }
}
